package com.spark.market.dal.repository;

import com.spark.market.dal.entity.SequenceInfoDo;

public interface SequenceInfoRepository {
    /**
     * 依据名字获取sequence信息
     * @param name
     * @return
     */
    public SequenceInfoDo getSequenceByName(String name);


    /**
     * 更新Sequence的步长
     * @param name
     * @param currentValue
     * @return
     */
    public int updateSequenceValue(String name, Integer currentValue);
}
